package cn.hl.hm.dao;

import cn.hl.hm.entity.RoadFee;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface RoadFeeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(RoadFee record);

    int insertSelective(RoadFee record);

    RoadFee selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RoadFee record);

    int updateByPrimaryKey(RoadFee record);
    
    List<RoadFee> selectRoadFees(RoadFee record);
    
    List<RoadFee> selectNewOrder(RoadFee record);
    
    List<RoadFee> selectCloseOrder(RoadFee record);
    
    //当日总数/日报表(本期到货)----number
	 
	 Integer selectRoadFeeNum (RoadFee record); 
	 
	 BigDecimal selectAllRoadFee (RoadFee record);

    Integer selectPayTimeBefore20MINUTE(@Param(value = "driverId") Integer driverId, @Param(value = "plateNumber") String plateNumber);

}